//
//  SXCallbackWithMap.h
//  SXIotSDK
//
//  Created by admin on 2020/7/7.
//

#import <Foundation/Foundation.h>
#import "SXSOnDataLoadedListener.h"

NS_ASSUME_NONNULL_BEGIN

@interface SXCallbackWithMap : NSObject<ComBoneylinkSxiotsdkshareListenerSXSOnDataLoadedListener>

typedef void(^CallbackWithDictionary)(NSDictionary<NSString*, id>*, NSError*);
@property (nonatomic, copy) CallbackWithDictionary callback;

- (instancetype)initWithCallback:(void(^)(NSDictionary<NSString*, id>* result, NSError* error))callback;

@end

NS_ASSUME_NONNULL_END
